package defpackage; import defpackage.gh; import org.xml.sax.Attributes; /* renamed from: nyz reason: default package */ public final class nyz { private static final String TAG = null; public ewd aYN; private String cjY; private String mId; public aago qix; private String qod; private String qoe; private String qof; private String qog; private String qoh; private String qoi; private String qoj; private String qok; private String qol; private String qom; private Boolean qon; private Boolean qoo; public nyz(aago aago, ewd ewd) { ew.assertNotNull("vmlContext should not be null", aago); ew.assertNotNull("mediaLib should not be null", ewd); this.qix = aago; this.aYN = ewd; } private static Integer LJ(String str) { if (str == null) { return null; } return nnz.LJ(str); } private static Float MH(String str) { if (str == null) { return null; } return npb.a(new gh(str)); } public evn a(Attributes attributes, evn evn) { Float J; Integer num = null; this.mId = aayw.a(attributes, "id", ""); if (this.mId == null) { this.mId = aayw.a(attributes, "id", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); } this.qod = aayw.a(attributes, "gain", ""); this.qoe = aayw.a(attributes, "gamma", ""); this.cjY = aayw.a(attributes, "title", "urn:schemas-microsoft-com:office:office"); this.qof = aayw.a(attributes, "cropleft", ""); this.qon = aayw.b(attributes, "bilevel", ""); this.qoh = aayw.a(attributes, "croptop", ""); this.qog = aayw.a(attributes, "cropright", ""); this.qoi = aayw.a(attributes, "cropbottom", ""); this.qoj = aayw.a(attributes, "blacklevel", ""); this.qok = aayw.a(attributes, "embosscolor", ""); this.qol = aayw.a(attributes, "chromakey", ""); this.qoo = aayw.b(attributes, "grayscale", ""); this.qom = aayw.a(attributes, "recolortarget", ""); Float MH = MH(this.qof); if (MH != null) { evn.ci(MH.floatValue()); } Float MH2 = MH(this.qog); if (MH2 != null) { evn.ck(MH2.floatValue()); } Float MH3 = MH(this.qoh); if (MH3 != null) { evn.ch(MH3.floatValue()); } Float MH4 = MH(this.qoi); if (MH4 != null) { evn.cj(MH4.floatValue()); } if (this.qon != null) { evn.jL(this.qon.booleanValue()); } if (this.qoj != null) { gh ghVar = new gh(this.qoj); Integer valueOf = gh.a.FRACTION == ghVar.GA ? Integer.valueOf(nzk.UR(ghVar.Dd.intValue())) : gh.a.FLOAT_VAL == ghVar.GA ? Integer.valueOf((int) ((ghVar.Dd.floatValue() * 100.0f) / 2.0f)) : null; if (valueOf != null) { evn.bZ((float) valueOf.intValue()); } } if (this.qod != null) { gh ghVar2 = new gh(this.qod); if (gh.a.FRACTION == ghVar2.GA) { num = Integer.valueOf(nzk.UT(ghVar2.Dd.intValue())); } else if (gh.a.FLOAT_VAL == ghVar2.GA) { num = Integer.valueOf((int) ((ghVar2.Dd.floatValue() * 100.0f) / 2.0f)); } if (num != null) { evn.cb((float) num.intValue()); } } Integer LJ = LJ(this.qok); if (LJ != null) { evn.tp(LJ.intValue()); } Integer LJ2 = LJ(this.qom); if (LJ2 != null) { evn.tq(LJ2.intValue()); } Integer LJ3 = LJ(this.qol); if (LJ3 != null) { evn.tc(LJ3.intValue()); } if (this.qoo != null) { evn.jK(this.qoo.booleanValue()); } if (!(this.qoe == null || (J = fk.J(this.qoe)) == null)) { evn.cl(J.floatValue()); } if (this.cjY != null) { evn.pd(this.cjY); } return evn; } }